<template>
  <div class="teamBuy">
     <div class="teamBuy-title">
      </div>
    <van-sticky>
  
    <div class="title fixed">
      <div class="back">
        <van-icon name="arrow-left" @click="$router.push('/home')" />
      </div>
      <div class="title-tabs" >
        专属特惠
    
      </div>
    </div>
    <div class="isyuyue red big">
      <span class="bigTitle">超低价好货</span>
      <span class="smallTitleWrap"
        ><span class="smallTitle">物美价廉</span
        ><span class="smallTitle">专属优惠</span
        ><span class="smallTitle">限时抢购</span></span
      >
    </div>
   
</van-sticky>
  
    <GoodsList />
  </div>
</template>
<script >
import { reactive, toRefs } from "vue";
import GoodsList from "@/components/promotion/teamBuyGood.vue";
export default {
  name: "teamBuy",
  components: {
    GoodsList,
  },
  setup() {
    const data = reactive({
      fixed: false,
    });
    return { ...toRefs(data) };
  },
};
</script>
<style lang="scss" scoped>
.teamBuy {
  min-height: 100vh;
  background: #f6f6f6;
  img {
    display: block;
  }
  .title {
    position: relative;
    display: flex;
    width: 100%;
    height: 4.5rem;
    line-height: 4.5rem;
    color: #333;
    background: #fff;
  }
  .back {
    position: absolute;
    left: 2rem;
    font-size: 2rem;
  }
  .title-tabs {
    margin: auto;
    font-size: 1.8rem;
    font-weight: bold;
  }

  .isyuyue {
    height: 5.2rem;
    background-color: transparent;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-color: #eb4338;
    }
.isyuyue .bigTitle {
    font-weight: 700;
    font-size: 2.5rem;
    color: #fff;
    display: inline-block;
    height: 5.2rem;
    line-height: 5.2rem;
}

 .isyuyue.big .smallTitleWrap {
    margin-top: .25rem;
}
.teamBuy-title {
    display: block;
    position: fixed;
    top: 0;
    height: 17rem;
    background: #eb4338;
    width: 100%;
    border-radius: 0 0 1.5rem 1.5rem;
}
 .isyuyue .smallTitle {
    font-size: 1rem;
    color: #f2f2f2;
    position: relative;
    padding-left: 1.5rem;
    display: inline-block;
    height: 1.5rem;
    line-height: 1.5rem;
    margin-right: 1rem;
}
.isyuyue.red .smallTitle:before {
    background-image: url();
}

.isyuyue .smallTitle:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
    background-image: url();
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50%;
}
 
}

</style>
